<!DOCTYPE html>
<html>
	<head>
		<meta charset="UTF-8">
		<title></title>
		<link rel="stylesheet" href="../jquery-ui.min.css" />
	</head>
	<body>
		<span>请输入：</span>
		<input id="tags">
		<script src="../jquery-1.12.4.min.js" ></script>
		<script src="../jquery-ui.min.js"></script>
		    <script>
        	//定义数组
        	var arr=['java','c','javacript','mysql','html&css'];
        	//给input元素使用自动完成插件功能
        	$('#tags').autocomplete(
        		{
        			source:arr
        		}
        	);
        	
        </script>
	</body>
</html>
